// 删除用户
const conn = require("./conn.js")
module.exports = (req, res) => {
    setTimeout(() => {
        let id = req.query.id
        // console.log(id)问题：前台id 为undefind
        var sql = 'delete from `papers` where`id`="'+id+'"'
        conn.query(sql, function (error, result) {
            if (error == null) {
                res.json({
                    error: 0,
                    message: 'ok',
                })
            } else {
                console.log(result)
                res.json({
                    error: 1,
                    message: 'error'
                })
            }
        })
    }, 500)

}